/*
*QWidget
*QLineEdit
*QLabel
*QToolButton
*QPushButton
*QLineEdit
*QRadioButton
*QTimeEdit
*QGroupBox
*QComboBox
*QCheckBox
*QScrollBar
*QSlider
*QProgressBar
*QTreeView,QListView,QTableView,QTabWidget
*QTabBar
*/
QWidget#widget {
        background: rgb(173, 202, 232);
}

/**********子界面中央背景**********/
QWidget#widget_1 {
        background: rgb(232, 241, 252);
}

/**********主界面样式**********/
QWidget#widget_2 {
        border: 1px solid rgb(50, 50, 50);
        background: rgb(50, 50, 50);
}

QWidget#widget_ctr {
        background: rgba(202, 211, 222);
}

QStackedWidget#stackedWidget {
    background: rgba(202, 211, 222);
}

QLabel {
border:0px;
    background: rgb(173, 202, 232);
/*    background: rgb(202, 211, 222);*/
}


QTextBrowser {
    color: black;
    background: rgb(173, 202, 232);
}

QLabel#state_lab,QLabel#label_port,QLabel#label_ip,QLabel#label_statues {
    background: rgb(202, 211, 222);
}

/**********输入框**********/
QLineEdit {
        border-radius: 4px;
        height: 25px;
        border: 1px solid rgb(111, 156, 207);
        background: white;
}
QLineEdit:enabled {
        color: rgb(84, 84, 84);
        border: 1px solid rgb(111, 156, 207);
}
QLineEdit:enabled:hover, QLineEdit:enabled:focus {
        color: rgb(51, 51, 51);
        border: 1px solid rgb(111, 156, 207);
}
QLineEdit:!enabled {
        color: rgb(80, 80, 80);
        border: 1px solid rgb(111, 156, 207);
}



/**********按钮**********/
QToolButton#main_btn,QToolButton#set_btn,QToolButton#set2_btn{
    border-style:none;
    border:0px solid #43CD80;/*边的颜色*/
    color:#000000;           /*字体颜色*/
    padding:5px;
    background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #ADCAE8,stop:1 #ADCAE8);
}

/*鼠标按下效果*/
QToolButton#main_btn:pressed,QToolButton#set_btn:pressed,QToolButton#set2_btn:pressed{
    background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #E8F1FC,stop:1 #ADCAE8);
}

/*鼠标悬停效果*/
QToolButton#main_btn:hover,QToolButton#set_btn:hover,QToolButton#set2_btn:hover {
    border-width:0px 0px 3px 0px;
    background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #ADCAE8,stop:1 #E8F1FC);
}

/*选中效果*/
QToolButton#main_btn:checked,QToolButton#set_btn:checked,QToolButton#set2_btn:checked {
    background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #ADCAE8,stop:1 #E8F1FC);
    border-width:0px 0px 3px 0px;/*边的宽度*/
}

/*     标题栏按钮        */
QPushButton#max_btn,QPushButton#close_btn,QPushButton#min_btn,QPushButton#change_color_btn{
border-radius:3px;
color:#DCDCDC;
padding:3px;
margin:0px;
background:none;
border-style:none;
}

QPushButton#max_btn:hover,QPushButton#close_btn:hover,QPushButton#min_btn:hover,QPushButton#change_color_btn:hover{
color:#FFFFFF;
margin:1px 1px 2px 1px;
background-color:rgba(51,127,209,230);
}

QPushButton#close_btn:hover{
color:#FFFFFF;
margin:1px 1px 2px 1px;
background-color:rgba(238,0,0,128);
}

QPushButton#left_btn,QPushButton#play_btn,QPushButton#right_btn{
border-radius:3px;
color:#6495ED;
padding:3px;
margin:0px;
background:none;
border-style:none;
}
QPushButton#left_btn:hover,QPushButton#play_btn:hover,QPushButton#right_btn:hover{
    color:#FFFFFF;
    margin:1px 1px 2px 1px;
    background-color:rgba(238,0,0,128);
}
QPushButton#left_btn:pressed,QPushButton#play_btn:pressed,QPushButton#right_btn:pressed{
    margin:2px 2px 3px 2px;
}

/**********按钮**********/
.QPushButton{
border-style:none;
border:0px solid #78AADC;
color:#000000;
padding:5px;
min-height:15px;
border-radius:5px;
background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #ADCAE8,stop:1 #E8F1FC);
}

.QPushButton:hover{
background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #B4B4B4,stop:1 #B4B4B4);
}

.QPushButton:pressed{
background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #ADCAE8,stop:1 #E8F1FC);
}

.QToolButton::menu-indicator{
image:None;
}


QLineEdit,QTextEdit,QPlainTextEdit,QSpinBox,QDoubleSpinBox,QComboBox,QDateEdit,QTimeEdit,QDateTimeEdit{
border:1px solid #6F9CCF;
border-radius:3px;
padding:2px;
background:none;
selection-background-color:#6F9CCF;
selection-color:#DCDCDC;
}

QLineEdit:focus,QTextEdit:focus,QPlainTextEdit:focus,QSpinBox:focus,QDoubleSpinBox:focus,QComboBox:focus,QDateEdit:focus,QTimeEdit:focus,QDateTimeEdit:focus,QLineEdit:hover,QTextEdit:hover,QPlainTextEdit:hover,QSpinBox:hover,QDoubleSpinBox:hover,QComboBox:hover,QDateEdit:hover,QTimeEdit:hover,QDateTimeEdit:hover{
border:1px solid #6F9CCF;
}

QLineEdit[echoMode="2"]{

}

.QFrame{
border:1px solid #242424;
border-radius:3px;
}

/*QRadioButton*/
QRadioButton::indicator{
width:15px;
height:15px;
}

QRadioButton:enabled:checked{
        color: rgb(2, 65, 132);
}
QRadioButton:enabled:!checked{
        color: rgb(70, 71, 73);
}
QRadioButton:enabled:hover{
        color: rgb(0, 78, 161);
}
QRadioButton:!enabled{
        color: rgb(80, 80, 80);
}
QRadioButton::indicator {
        width: 20px;
        height: 20px;
}

/*QRadioButton::indicator::unchecked{
image:url(:/qss/psblack/radiobutton_unchecked.png);
}

QRadioButton::indicator::unchecked:disabled{
image:url(:/qss/psblack/radiobutton_unchecked_disable.png);
}

QRadioButton::indicator::checked{
image:url(:/qss/psblack/radiobutton_checked.png);
}

QRadioButton::indicator::checked:disabled{
image:url(:/qss/psblack/radiobutton_checked_disable.png);
}*/


/*QTimeEdit*/
QTimeEdit::up-button,QDateEdit::up-button,QDateTimeEdit::up-button,QDoubleSpinBox::up-button,QSpinBox::up-button{
image:url(:/qss/psblack/add_top.png);
width:10px;
height:10px;
padding:2px 5px 0px 0px;
}

QTimeEdit::down-button,QDateEdit::down-button,QDateTimeEdit::down-button,QDoubleSpinBox::down-button,QSpinBox::down-button{
image:url(:/qss/psblack/add_bottom.png);
width:10px;
height:10px;
padding:0px 5px 2px 0px;
}

QTimeEdit::up-button:pressed,QDateEdit::up-button:pressed,QDateTimeEdit::up-button:pressed,QDoubleSpinBox::up-button:pressed,QSpinBox::up-button:pressed{
top:-2px;
}

QTimeEdit::down-button:pressed,QDateEdit::down-button:pressed,QDateTimeEdit::down-button:pressed,QDoubleSpinBox::down-button:pressed,QSpinBox::down-button:pressed,QSpinBox::down-button:pressed{
bottom:-2px;
}


/*QGroupBox*/
.QGroupBox{
border:1px solid #6F9CCF;
border-radius:5px;
margin-top:3ex;
}

.QGroupBox::title{
subcontrol-origin:margin;
position:relative;
left:10px;
color: #38639A;
}
QLineEdit,QTextEdit,QPlainTextEdit,QSpinBox,QDoubleSpinBox,QComboBox,QDateEdit,QTimeEdit,QDateTimeEdit{
/*background:#ADCAE8;*/
background: white;
color: rgb(111, 156, 207);
border: 1px solid rgb(111, 156, 207);
}

/*QComboBox*/
QComboBox::down-arrow,QDateEdit[calendarPopup="true"]::down-arrow,QTimeEdit[calendarPopup="true"]::down-arrow,QDateTimeEdit[calendarPopup="true"]::down-arrow{
image:url(:/qss/psblack/add_bottom.png);
width:10px;
height:10px;
right:2px;
}

QComboBox::drop-down,QDateEdit::drop-down,QTimeEdit::drop-down,QDateTimeEdit::drop-down{
subcontrol-origin:padding;
subcontrol-position:top right;
width:15px;
border-left-width:0px;
border-left-style:solid;
border-top-right-radius:3px;
border-bottom-right-radius:3px;
border-left-color:rgb(173, 202, 232);
}

QComboBox::drop-down:on{
top:1px;
color: rgb(173, 202, 232);
}

/*QCheckBox*/
QCheckBox::indicator,QGroupBox::indicator,QTreeWidget::indicator,QListWidget::indicator{
width:13px;
height:13px;
background: white;
color: rgb(111, 156, 207);
border: 1px solid rgb(111, 156, 207);
}

QCheckBox::indicator:unchecked,QGroupBox::indicator:unchecked,QTreeWidget::indicator:unchecked,QListWidget::indicator:unchecked{
/*image:url(:/qss/psblack/checkbox_unchecked.png);*/
}

QCheckBox::indicator:unchecked:disabled,QGroupBox::indicator:unchecked:disabled,QTreeWidget::indicator:unchecked:disabled,QListWidget::indicator:disabled{
image:url(:/qss/psblack/checkbox_unchecked_disable.png);
}

QCheckBox::indicator:checked,QGroupBox::indicator:checked,QTreeWidget::indicator:checked,QListWidget::indicator:checked{
image:url(:/qss/psblack/checkbox_checked.png);
}

QCheckBox::indicator:checked:disabled,QGroupBox::indicator:checked:disabled,QTreeWidget::indicator:checked:disabled,QListWidget::indicator:checked:disabled{
image:url(:/qss/psblack/checkbox_checked_disable.png);
}

QCheckBox::indicator:indeterminate,QGroupBox::indicator:indeterminate,QTreeWidget::indicator:indeterminate,QListWidget::indicator:indeterminate{
image:url(:/qss/psblack/checkbox_parcial.png);
}

QCheckBox::indicator:indeterminate:disabled,QGroupBox::indicator:indeterminate:disabled,QTreeWidget::indicator:indeterminate:disabled,QListWidget::indicator:indeterminate:disabled{
image:url(:/qss/psblack/checkbox_parcial_disable.png);
}

/**********滚动条-水平**********/
QScrollBar:horizontal{
background:transparent;
padding:0px;
border-radius:6px;
max-height:12px;
}

QScrollBar::handle:horizontal{
background:#AAC8E6;
min-width:50px;
border-radius:6px;
}

QScrollBar::handle:horizontal:hover{
background:#00BB9E;
}

QScrollBar::handle:horizontal:pressed{
background:#00BB9E;
}

QScrollBar::add-page:horizontal{
background:none;
}

QScrollBar::sub-page:horizontal{
background:none;
}

QScrollBar::add-line:horizontal{
background:none;
}

QScrollBar::sub-line:horizontal{
background:none;
}
/**********滚动条-垂直**********/
QScrollBar:vertical{
background:transparent;
padding:0px;
border-radius:6px;
max-width:12px;
}

QScrollBar::handle:vertical{
background:#AAC8E6;
min-height:50px;
border-radius:6px;
}

QScrollBar::handle:vertical:hover{
background:#00BB9E;
}

QScrollBar::handle:vertical:pressed{
background:#00BB9E;
}

QScrollBar::add-page:vertical{
background:none;
}

QScrollBar::sub-page:vertical{
background:none;
}

QScrollBar::add-line:vertical{
background:none;
}

QScrollBar::sub-line:vertical{
background:none;
}


/*QSlider*/
QSlider::groove:horizontal{
background:#E8F1FC;
height:8px;
border-radius:4px;
}

QSlider::add-page:horizontal{
background:#AAC8E6;
height:8px;
border-radius:4px;
}

QSlider::sub-page:horizontal{
background:#00BB9E;
height:8px;
border-radius:4px;
}

QSlider::handle:horizontal{
width:13px;
margin-top:-3px;
margin-bottom:-3px;
border-radius:6px;
background:qradialgradient(spread:pad,cx:0.5,cy:0.5,radius:0.5,fx:0.5,fy:0.5,stop:0.6 #AAC8E6,stop:0.8 #00BB9E);
}

QSlider::groove:vertical{
width:8px;
border-radius:4px;
background:#E8F1FC;
}

QSlider::add-page:vertical{
width:8px;
border-radius:4px;
background:#AAC8E6;
}

QSlider::sub-page:vertical{
width:8px;
border-radius:4px;
background:#00BB9E;
}

QSlider::handle:vertical{
height:14px;
margin-left:-3px;
margin-right:-3px;
border-radius:6px;
background:qradialgradient(spread:pad,cx:0.5,cy:0.5,radius:0.5,fx:0.5,fy:0.5,stop:0.6 #AAC8E6,stop:0.8 #00BB9E);
}

/*QProgressBar*/
QProgressBar{
min-height:10px;
background:rgb(173, 202, 232);
border-radius:5px;
text-align:center;
border:1px solid rgb(173, 202, 232);
}

QProgressBar:chunk{
border-radius:5px;
background-color:#00BB9E;
}

/*QTreeView,QListView,QTableView,QTabWidget*/
QTreeView,QListView,QTableView,QTabWidget::pane{
border:1px solid #242424;
selection-background-color:#646464;
selection-color:#DCDCDC;
alternate-background-color:#525252;
gridline-color:#242424;
}

QTreeView::branch:closed:has-children{
margin:4px;
border-image:url(:/qss/psblack/branch_open.png);
}

QTreeView::branch:open:has-children{
margin:4px;
border-image:url(:/qss/psblack/branch_close.png);
}

QTreeView,QListView,QTableView,QSplitter::handle,QTreeView::branch{
background:#444444;
}

QTableView::item:selected,QListView::item:selected,QTreeView::item:selected{
color:#DCDCDC;
background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #484848,stop:1 #383838);
}

QTableView::item:hover,QListView::item:hover,QTreeView::item:hover{
color:#DCDCDC;
background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #646464,stop:1 #525252);
}

QTableView::item,QListView::item,QTreeView::item{
padding:1px;
margin:0px;
}

QHeaderView::section,QTableCornerButton:section{
padding:3px;
margin:0px;
color:#DCDCDC;
border:1px solid #242424;
border-left-width:0px;
border-right-width:1px;
border-top-width:0px;
border-bottom-width:1px;
background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #646464,stop:1 #525252);
}


/*QTabBar*/
QTabBar::tab{
border:1px solid #242424;
color:#DCDCDC;
margin:0px;
background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #646464,stop:1 #525252);
}

QTabBar::tab:selected,QTabBar::tab:hover{
border-style:solid;
border-color:#00BB9E;
background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #484848,stop:1 #383838);
}

QTabBar::tab:top,QTabBar::tab:bottom{
padding:3px 8px 3px 8px;
}

QTabBar::tab:left,QTabBar::tab:right{
padding:8px 3px 8px 3px;
}

QTabBar::tab:top:selected,QTabBar::tab:top:hover{
border-width:2px 0px 0px 0px;
}

QTabBar::tab:right:selected,QTabBar::tab:right:hover{
border-width:0px 0px 0px 2px;
}

QTabBar::tab:bottom:selected,QTabBar::tab:bottom:hover{
border-width:0px 0px 2px 0px;
}

QTabBar::tab:left:selected,QTabBar::tab:left:hover{
border-width:0px 2px 0px 0px;
}

QTabBar::tab:first:top:selected,QTabBar::tab:first:top:hover,QTabBar::tab:first:bottom:selected,QTabBar::tab:first:bottom:hover{
border-left-width:1px;
border-left-color:#242424;
}

QTabBar::tab:first:left:selected,QTabBar::tab:first:left:hover,QTabBar::tab:first:right:selected,QTabBar::tab:first:right:hover{
border-top-width:1px;
border-top-color:#242424;
}

QTabBar::tab:last:top:selected,QTabBar::tab:last:top:hover,QTabBar::tab:last:bottom:selected,QTabBar::tab:last:bottom:hover{
border-right-width:1px;
border-right-color:#242424;
}

QTabBar::tab:last:left:selected,QTabBar::tab:last:left:hover,QTabBar::tab:last:right:selected,QTabBar::tab:last:right:hover{
border-bottom-width:1px;
border-bottom-color:#242424;
}

QStatusBar::item{
border:0px solid #484848;
border-radius:3px;
}
